#ifndef LINE_EDIT_H
#define LINE_EDIT_H

#include "../Widget.h"

namespace PickinOpenSticks {
    namespace Ui {

        class LineEdit : public Widget {
        public:

            LineEdit() {
                text.SetSize(16);
                text.SetColor(sf::Color());
                type = LINE_EDIT;
            }
            void SetDefaultImage();
            void SetPos(int x, int y);
        private:
            void Draw(sf::RenderTarget* target);
        protected:
            void OnKeyPressed(sf::Event* event);
            void OnTextEntered(sf::Event* event);

            sf::String text;
        };

    }
}
#endif
